package com.version1_4.dao;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Created by reeveslee on 16/5/3.
 */
public interface FeedDao {

    public boolean addFeed(int topicId, int userId, String text, String images, String voice);

    public List<Map<String, Object>> replys(int feedId);

    public boolean addReply(int userId, int feedId, int subReplyTo, String text, String voice);

    public boolean delReply(int userId, int replyId);

    public List<Map<String, Object>> newestFeed(int topicId);

    public int newFeedNum(int topicId, Date time);

    public boolean addPraise(int feedId, int userId);

    public boolean deletePraise(int feedId, int userId);

    public Map<String, Object> feedInfo(int feedId);

    public boolean collectAdd(int userId, int feedId);

    public List<Map<String, Object>> collect(int userId);

    public boolean report(int userId, int feedId);

    public boolean collectDel(int userId, int feedId);

    public boolean delete(int userId, int feedId);

    public Map<String, Object> replyPushInfo(int userId, int feedId, int subReplyTo);

    public Map<String, Object> praisePushInfo(int userId, int feedId);
}
